-- GENERATED SPELL FOR [Kurz the Revelator] --


function spell0_17443(pUnit, Event) --@Revelations,n/a--
pUnit:FullCastSpellOnTarget(30499,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17443', 636, 1)
end

function spell1_17443(pUnit, Event) --@Revelations,n/a--
pUnit:FullCastSpellOnTarget(30536,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17443', 635, 1)
end

function spell2_17443(pUnit, Event) --@Revelations,n/a--
pUnit:FullCastSpellOnTarget(30603,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17443', 571, 1)
end

function Sorts_17443(pUnit, Event)
local choix_sorts_17443 = math.random(0, 2)
if choix_sorts_17443 == 0 then
pUnit:RegisterEvent('spell0_17443', 1, 1)
end
if choix_sorts_17443 == 1 then
pUnit:RegisterEvent('spell1_17443', 1, 1)
end
if choix_sorts_17443 == 2 then
pUnit:RegisterEvent('spell2_17443', 1, 1)
end
end

function mob17443_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17443', math.random(1500, 3000), 1)
end

function mob17443_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17443_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17443_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17443, 1, 'mob17443_Action')
RegisterUnitEvent(17443, 2, 'mob17443_Leave')
RegisterUnitEvent(17443, 3, 'mob17443_Kill')
RegisterUnitEvent(17443, 4, 'mob17443_Die')
